package com.hunliji.monitor.dao.model.dataobject;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 钱包账户表
 * </p>
 *
 * @author wu_chen
 * @since 2023-05-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("merchant_wallet_account")
public class MerchantWalletAccountDO implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    /**
     * 钱包ID
     */
    private Long merchantWalletId;

    /**
     * 0-本金账户，1-充返账户，2-消返账户
     */
    private Integer accountType;

    /**
     * 余额，单位分
     */
    private Long amount;

    /**
     * 版本号
     */
    private Long version;

    /**
     * 新创建时间
     */
    private LocalDateTime dbCreateAt;

    /**
     * 新更新时间
     */
    private LocalDateTime dbUpdatedAt;

    /**
     * 逻辑删除(0:未删除,1:已删除)
     */
    private Integer deleted;


}
